import request from './index'
export const rloesListAPI = _ => request({
  url: 'roles'
})

export const RightsDeleteAPI = (id, row) => request({
  method: 'DELETE',
  url: `roles/${row}/rights/${id}`
})

export const rightsEditAPI = _ => request({
  method: 'GET',
  url: 'rights/tree'
})

export const rigthsAPI = (id, data) => request({
  method: 'POST',
  url: `roles/${id}/rights`,
  data
})
